home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / database / foodco55.zip / INSTALL.DAT < prev    next >
Text File  |  1995-12-19  |  9KB  |  267 lines

  1. /*Project: Foodco
  2.  *Version: 5.5
  3.  *INSTALL.DAT generated by: AMM & JAW
  4.  *Copyright (c) 1984-1995 Software Creations*/
  5. /* Used= A C D E F G H I K N O P R S T U V W X Y */
  6. @DefineProject
  7.     @Name = "Foodco"
  8.     @Version = "5.5"
  9.     @Immediate = 1
  10.     @Terse
  11.     @InDiskBell = 1
  12.     @Subdir = "\\"
  13.     @OutDrive = C
  14.     @Requires @HardDisk
  15.     @AssumeHardDisk = 1
  16.     @Verify
  17. @EndProject
  18. @Display
  19.     @Cls
  20.     This program will install @Name version @Version on your computer
  21.     system.  You may press the [Esc] key at any time to abort the
  22.     installation.
  23.  
  24.     The installation program will ask you several questions about 
  25.     your computer.  Each question has a default answer that will be 
  26.     flashing on the screen.  If the default answer is correct, press 
  27.     the ENTER key in response to the question. Otherwise, use the 
  28.     arrow keys to select the correct answer, then press the ENTER key.
  29.                     
  30.                     @Pause
  31. @EndDisplay
  32. @If (@RAMAvail < 530K)
  33.     @Display
  34.     @Cls
  35.     There is not enough free conventional memory to run the installation
  36.     properly.  Please free up at least 530K of conventional memory by 
  37.     removing TSR's or other programs from memory.
  38.  
  39.     The installation program will now close.
  40.     @Pause
  41.     @Exit
  42.     @EndDisplay
  43. @EndIf
  44. @DefineVars
  45.     @Qstring @DosDir = "C:\\DOS"
  46. @EndVars
  47. CHOOSE_AGAIN:
  48. @GetOutDrive
  49.     @Cls
  50.     On which disk drive do you wish to install @Name?
  51.     @Suppress A
  52.     @Suppress B
  53.  
  54.  
  55. @EndOutDrive
  56.  
  57. @If (@Exists ("@OutDrive:\\FOODCO5\\*.*"))
  58.     @Display
  59.     WARNING: Foodco already installed!
  60.  
  61.     Foodco is already installed on drive @Outdrive.  If you continue, the
  62.     current program will be overwritten, along with any custom settings
  63.     that you may have altered.
  64.  
  65.                     @Pause
  66.     @EndDisplay
  67. @EndIf
  68.  
  69. @Display
  70.     @If(@DiskFree @OutDrive < 15000000)
  71.         The selected output disk drive only has
  72.         @DiskFree @OutDrive bytes free.  @Name requires
  73.         15,000,000 bytes free.
  74.                     
  75.                     @Pause
  76.     @EndIf
  77. @EndDisplay
  78.  
  79. FTINSTALL:
  80. @GetGroups
  81.     @LocalWindow (11,40)
  82.     Would you like to automatically update your computer's configuration
  83.     files?
  84.     
  85.     NOTE:  'YES' will save originals as CONFIG.FCO and AUTOEXEC.FCO if
  86.            any changes were made.
  87.  
  88.     @Set y = "YES - Update CONFIG.SYS and AUTOEXEC.BAT."
  89.     @Set n = "NO  - Do Not Update CONFIG.SYS and AUTOEXEC.BAT."
  90. @EndGroups
  91. NOTVALID1:
  92. @If ('y' [= @Group && ! @Exists("C:\\DOS\\*.*"))  
  93.     @GetString @DosDir
  94.     Please type the drive and full path name where DOS is installed 
  95.     and press the ENTER key to continue.  i.e.  C:\MSDOS
  96.  
  97.         @Prompt = "DOS directory?"
  98.     @EndString @DosDir
  99.     @If (! @Exists "@DosDir\\*.*")
  100.     @Display
  101.     @Cls
  102.     This Dos Directory is invalid, please enter a valid Dos
  103.     directory.
  104.                     @Pause
  105.     @EndDisplay
  106.         @GOTO NOTVALID1
  107.     @EndIf
  108. @EndIf
  109.  
  110. @MkDir("@OutDrive:\\FOODCO5")
  111. @MkDir("@OutDrive:\\FOODCO5\\SPOOL")
  112. @MkDir("@OutDrive:\\FOODCO5\\UTILS")
  113. @MkDir("@OutDrive:\\FOODCO5\\REGS")
  114. @MkDir("@OutDrive:\\FOODCO5\\INPORT")
  115. @MkDir("@OutDrive:\\FOODCO5\\BACKUP.OLD")
  116. @MkDir("@OutDrive:\\FOODCO5\\TRAINING")
  117. @MkDir("@OutDrive:\\FOODCO5\\MERGE")
  118. @MkDir("@OutDrive:\\FOODCO5\\GRAPHICS")
  119. @FileAttr("@OutDrive:\\FOODCO5\\*.*", "r-")
  120. @FileAttr("@OutDrive:\\FOODCO5\\BTRIEVE\\*.*", "r-")
  121. @FileAttr("@OutDrive:\\FOODCO5\\INPORT\\*.*", "r-")
  122. @FileAttr("@OutDrive:\\FOODCO5\\TRAINING\\*.*", "r-")
  123. @FileAttr("@OutDrive:\\FOODCO5\\MERGE\\*.*", "r-")
  124. @Delete("@OutDrive:\\FOODCO5\\TRAINING\\*.*")
  125. @Delete("@OutDrive:\\FOODCO5\\MERGE\\*.*")
  126. @MkDir("@OutDrive:\\FOODCO5\\TRAINING")
  127. @MkDir("@OutDrive:\\FOODCO5\\MERGE")
  128.  
  129. @If (@Exists "@OutDrive:\\FOODCO5\\UNITCODE.*")
  130.     @Copy("@OutDrive:\\FOODCO5\\UNITCODE.*", "@OutDrive:\\FOODCO5\\BACKUP.OLD")
  131. @EndIf
  132. @If (@Exists "@OutDrive:\\FOODCO5\\PRINTDEF.DAT")
  133.     @Copy("@OutDrive:\\FOODCO5\\PRINTDEF.DAT", "@OutDrive:\\FOODCO5\\BACKUP.OLD")
  134. @EndIf
  135. @If (@Exists "@OutDrive:\\FOODCO5\\REPDEPS.*")
  136.     @Copy("@OutDrive:\\FOODCO5\\REPDEPS.*", "@OutDrive:\\FOODCO5\\BACKUP.OLD")
  137. @EndIf
  138. @If (@Exists "@OutDrive:\\FOODCO5\\PODEFS.*")
  139.     @Copy("@OutDrive:\\FOODCO5\\PODEFS.*", "@OutDrive:\\FOODCO5\\BACKUP.OLD")
  140. @EndIf
  141. @If (@Exists "@OutDrive:\\FOODCO5\\POREPDEF.*")
  142.     @Copy("@OutDrive:\\FOODCO5\\POREPDEF.*", "@OutDrive:\\FOODCO5\\BACKUP.OLD")
  143. @EndIf
  144. @If (@Exists "@OutDrive:\\FOODCO5\\GENLIST.*")
  145.     @Copy("@OutDrive:\\FOODCO5\\GENLIST.*", "@OutDrive:\\FOODCO5\\BACKUP.OLD")
  146. @EndIf
  147. @If (@Exists ("@OutDrive:\\FOODCO5\\INV_DATA\\INV.BTR"))
  148.     @Display
  149.     WARNING:  Data may alreay exist
  150.  
  151.     There may already be data installed in the @OutDrive:\FOODCO5\INV_DATA
  152.     directory.  If you continue, the inventory data will be
  153.     overwritten.  Please make a DOS backup of this directory
  154.     if it contains important data.
  155.  
  156.     Press [ESC] now to abort the installation if you have not made
  157.     a complete DOS backup and you would like to.  See your DOS
  158.     Manual on how to use BACKUP or MSBACKUP.
  159.  
  160.                     @Pause
  161.     @EndDisplay
  162. @EndIf
  163. @If (@Exists ("@OutDrive:\\FOODCO5\\YOURSITE\\*.BTR"))
  164.     @Display
  165.     WARNING:  Data may alreay exist
  166.  
  167.     There may already be data installed in the @OutDrive:\FOODCO5\YOURSITE
  168.     directory.  If you continue, the inventory data will be
  169.     overwritten.  Please make a DOS backup of this directory
  170.     if it contains important data.
  171.  
  172.     Press [ESC] now to abort the installation if you have not made
  173.     a complete DOS backup and you would like to.  See your DOS
  174.     Manual on how to use BACKUP or MSBACKUP.
  175.  
  176.                     @Pause
  177.     @EndDisplay
  178. @EndIf
  179. @Delete("@OutDrive:\\FOODCO5\\BREPMENU.EXE")
  180. @Delete("@OutDrive:\\FOODCO5\\BUDGET5.EXE")
  181. @Delete("@OutDrive:\\FOODCO5\\CVT1.EXE")
  182. @Delete("@OutDrive:\\FOODCO5\\DIAP.EXE")
  183. @Delete("@OutDrive:\\FOODCO5\\EXPLODE.EXE")
  184. @Delete("@OutDrive:\\FOODCO5\\EXPLODE3.EXE")
  185. @Delete("@OutDrive:\\FOODCO5\\EXPLODE1.BAT")
  186. @Delete("@OutDrive:\\FOODCO5\\FCREPS5.EXE")
  187. @Delete("@OutDrive:\\FOODCO5\\MASTEREN.EXE")
  188. @Delete("@OutDrive:\\FOODCO5\\MASTMENU.EXE")
  189. @Delete("@OutDrive:\\FOODCO5\\MULTI5.EXE")
  190. @Delete("@OutDrive:\\FOODCO5\\MPOREPS.EXE")
  191. @Delete("@OutDrive:\\FOODCO5\\PO.EXE")
  192. @Delete("@OutDrive:\\FOODCO5\\RUNME.EXE")
  193. @Delete("@OutDrive:\\FOODCO5\\TESTDIO.EXE")
  194. @Delete("@OutDrive:\\FOODCO5\\UTILS.EXE")
  195. @Delete("@OutDrive:\\FOODCO5\\EXPLODE.FIL")
  196. @Delete("@OutDrive:\\FOODCO5\\PFDATA.SYS")
  197. @Delete("@OutDrive:\\FOODCO5\\FOODCO5.SYS")
  198. @Delete("@OutDrive:\\FOODCO5\\IPCX.COM")
  199. @Delete("@OutDrive:\\FOODCO5\\MEALCVT.EXE")
  200. @Delete("@OutDrive:\\FOODCO5\\TESTDIO.EXE")
  201. @Delete("@OutDrive:\\FOODCO5\\SECTHR.BTR")
  202. @Delete("@OutDrive:\\FOODCO5\\REGISTER.EXE")
  203. @Delete("@OutDrive:\\FOODCO5\\REGIMP.BAT")
  204. @Delete("@OutDrive:\\FOODCO5\\SPOOL\\REGISTER.EXE")
  205. @Delete("@OutDrive:\\FOODCO5\\REGS\\REGISTER.EXE")
  206. @Delete("@OutDrive:\\FOODCO5\\PKUNZIP.EXE")
  207. @Delete("@OutDrive:\\FOODCO5\\ACTIVAT*.*")
  208. @Delete("@OutDrive:\\FOODCO5\\CONFIG.DAT")
  209. @Delete("@OutDrive:\\FOODCO5\\CONTINUE.BAT")
  210. @Delete("@OutDrive:\\FOODCO5\\INSTALL.BAT")
  211. @Delete("@OutDrive:\\FOODCO5\\*.?RP")
  212. @Delete("@OutDrive:\\FOODCO5\\*.PST")
  213. @Delete("@OutDrive:\\FOODCO5\\CUSTOM.MAC")
  214. @Delete("@OutDrive:\\FOODCO5\\DUMPOPTI.EXE")
  215. @Delete("@OutDrive:\\FOODCO5\\GHOSTJR*.*")
  216. @Delete("@OutDrive:\\FOODCO5\\PROBLEM.8")
  217. @Delete("@OutDrive:\\FOODCO5\\REC*.BAT")
  218. @Delete("@OutDrive:\\FOODCO5\\MEALCVT.EXE")
  219. @Delete("@OutDrive:\\FOODCO5\\TESTDIO.EXE")
  220. @Delete("@OutDrive:\\FOODCO5\\COMMISAR.EXE")
  221. @Delete("@OutDrive:\\FOODCO5\\IMPORTOR.EXE")
  222. @Write("@OutDrive:\\Foodco5\\Foodco5.bat", "wt", "@@Echo OFF\nSet Fdrive=@Outdrive:\n")
  223. @Write("@OutDrive:\\Foodco5\\Tagdel.bat", "wt", "@@Echo OFF\nSet Fdrive=@Outdrive:\n")
  224. @Write("@OutDrive:\\Foodco5\\Comm.bat", "wt", "@@Echo OFF\nSet Fdrive=@Outdrive:\n")
  225. @Write("@OutDrive:\\Foodco5\\Order.bat", "wt", "@@Echo OFF\nSet Fdrive=@Outdrive:\n")
  226. @If (! @Exists("@Outdrive:\\Foodco5\\Mult5.prf") && 'i' [= @Group)
  227.     @Write("@OutDrive:\\Foodco5\\Mult5.prf", "wt", "DEMODATA\nINV_DATA\nYOURSITE\n")
  228. @Endif
  229.  
  230. @Finish
  231.     @Spawn("FOODCO.EXE -d -o @OutDrive:\\")
  232.     @Spawn("ACRODOS.EXE -d -o @OutDrive:\\")
  233.     @Write("@OutDrive:\\ACRODOS\\ACROBAT.VMC", "at", "swapname=@OutDrive:\\ACRODOS\\ACROBAT.SWP\n")
  234.     @Write("@OutDrive:\\ACRODOS\\ACROBAT.INI", "at", "\n[Fonts]\nFontDir=@OutDrive:\\ACRODOS\\PSFONTS\n")
  235.     @Write("@OutDrive:\\ACRODOS\\ACROBAT.INI", "at", "\n[Files]\nDefaultPath=@OutDrive:\\ACRODOS\n")
  236.     @Write("@OutDrive:\\ACRODOS\\ACROBAT.INI", "at", "TempFilePath=@OutDrive:\\ACRODOS\\\nDefaultExt=*.PDF\n")
  237.     @ChDrive @OutDrive
  238.     @ChDir "\\FOODCO5"
  239.     @System("Copy Foodco5.bat + Foodco5.ins Foodco5.bat")
  240.     @Cls
  241.     @System("Copy Tagdel.bat + Tagdel.ins Tagdel.bat")
  242.     @Cls
  243.     @System("Copy Comm.bat + Comm.ins Comm.bat")
  244.     @Cls
  245.     @System("Copy Order.bat + Order.ins Order.bat")
  246.     @Cls
  247.     @If ('y' [= @Group )  @Spawn ("\\FOODCO5\\SETUP2.EXE @DosDir @BootDrive")  @EndIf
  248.     @Cls
  249.  
  250.     Installation of @Name @version is now finished. 
  251.  
  252.     You will need to reboot your computer before any changes
  253.     made to CONFIG.SYS or AUTOEXEC.BAT will take effect.
  254.  
  255.     You can view the Fast Start Online Manual at any time by typing
  256.     MANUAL from the \FOODCO5 directory.
  257.     
  258.     Press any key to view the Fast Start Online Manual now.
  259.  
  260.                     @Pause
  261.  
  262. @Execute("@outdrive:\\ACRODOS\\ACROBAT.EXE", "\\ACRODOS\\FASTSTRT.PDF")
  263. @EndFinish
  264.  
  265.  
  266. /* end-of-file */
  267.